package cn.demoncat.util.ocr.baidu.constant;

import cn.demoncat.util.lang.entity.MapSs;

import java.util.Map;

/**
 * 百度OCR常量
 *
 * @author 延晓磊
 * @since 2020年10月26日
 */
public class BdOcrConstant {

    /**
     * 错误码
     */
    public static final MapSs ERRORS = MapSs.getInstance(
            "216202", "图片太大，请修剪后再试",
            "216201", "图片格式错误，请重新上传",
            "216630", "图片识别错误，请重新上传",
            "216631", "图片识别错误，请重新上传",
            "216633", "图片识别错误，请重新上传"
    );

    /**
     * 身份证识别状态
     */
    public static final Map<String,String> ID_CARD_STATUS = MapSs.getInstance(
            "normal", "识别正常",
            "reversed_side", "身份证正反面颠倒",
            "non_idcard", "上传的图片中不包含身份证",
            "blurred", "身份证模糊",
            "other_type_card", "其他类型证照",
            "over_exposure", "身份证关键字段反光或过曝",
            "over_dark", "身份证亮度过低",
            "unknown", "身份证识别失败"
    );

}
